package com.example.smartgreenhouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("environment_current")
public class EnvironmentCurrent {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long sensorId;
    private Long greenhouseId;
    private String metricType;
    private Integer currentValue;
    private Integer currentChangeValue;
    private Float currentChangeRate;
    private LocalDateTime collectTime;
    private LocalDateTime createTime;
}